package com.chart.chart.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.chart.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 *  图表操作 chart_statistics
 * 
 * @author ruoyi
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChartStatistics extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 参数主键 */
  //  @TableId(value = "id", type = IdType.ASSIGN_ID)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 图表（大屏）类型id */
    private Long configId;

    /** 用户id */
    private Long userId;

    /**1 保存  2导出  3导入  4已转发*/
    private Integer event;

    /** 0 图表  1转发  2大屏  3智能图表 */
    private Integer eventType;


    @TableField(exist = false)
    private String configName;


    @TableField(exist = false)
    private String startTime;

    @TableField(exist = false)
    private String endTime;

    /** 页面URL */
    private String pageUrl;
    /** 会话ID*/
    private String ipAddress;
    /** IP地址 */
    private String sessionId;
    /** 事件发生时间 */
    private Date eventTime;


    private Long operationTotal;  // 记录操作总数

}
